import React, { Component } from 'react'
import styles  from './assemble.module.css'
import { ThemeContext } from './Parent'
export default class Son extends Component {

    constructor(){
        super()
        this.state = {
            
        }
    }

    componentDidMount () {
        
    }
    
    render() {
        return (
            <ThemeContext.Consumer>
                    {
                        (value)=>(
                            <div className={styles.son}>
                                <button> {value} </button>
                            </div>
                        )
                    }
            </ThemeContext.Consumer>
        )
    }
}
